#include "Tim_Encoder.h"

uint16_t Tim_Encoder_GetMotorSpeed(void) {
  uint16_t aa = (uint16_t)LL_TIM_GetCounter(TIM4);
  LL_TIM_SetCounter(TIM4, 0);
  return aa;
}

